package customer.core.ctrl;

import src.User;
import src.util.Message;
import src.util.ServerIo;

public class UserControlIo extends ServerIo{

	public boolean checkLogin(User u)
	{
		message = new Message( "/loginController", User.class);
		message.addParam( "login", u.getLoginUser());
		message.addParam( "pass",u.getHashPass());
		sendReceive( );

		System.out.println("status="+message.getStatus());
		return message.getStatus( ) == 200;
	}
}
